﻿namespace Unity.Commons.Client
{
    public class UnityVersion
    {
        private static readonly UnityVersion InternalVersion = new UnityVersion(2022, 09, 0);
        private static readonly UnityVersion ReleaseVersion = new UnityVersion(0, 7, 1);
        
        private readonly int _major;
        private readonly int _minor;
        private readonly int _patch;

        private UnityVersion(int major, int minor, int patch)
        {
            _major = major;
            _minor = minor;
            _patch = patch;
        }

        public override string ToString()
        {
            return $"{_major}.{_minor}.{_patch}";
        }

        public static UnityVersion GetInternalVersion()
        {
            return InternalVersion;
        }

        public static UnityVersion GetReleaseVersion()
        {
            return ReleaseVersion;
        }

    }
}